﻿<Serializable()> _
Public Class Emoneda

#Region "           Atributos                       "
    Private _idMoneda As Int32
    Private _descMoneda As String
    Private _estado As String
    Private _desEstado As String
    Private _idUsuario As Int32
#End Region

#Region "           Propiedades                     "
    Public Property idMoneda() As Int32
        Get
            Return _idMoneda
        End Get
        Set(ByVal value As Int32)
            _idMoneda = value
        End Set
    End Property
    Public Property descMoneda() As String
        Get
            Return _descMoneda
        End Get
        Set(ByVal value As String)
            _descMoneda = value
        End Set
    End Property
    Public Property estado() As String
        Get
            Return _estado
        End Get
        Set(ByVal value As String)
            _estado = value
        End Set
    End Property
    Public Property desEstado() As String
        Get
            Return _desEstado
        End Get
        Set(ByVal value As String)
            _desEstado = value
        End Set
    End Property
    Public Property idUsuario() As Int32
        Get
            Return _idUsuario
        End Get
        Set(ByVal value As Int32)
            _idUsuario = value
        End Set
    End Property
#End Region

#Region "           Propiedades Avanzadas           "

#End Region

#Region "           Contructores                    "
    Public Sub New()

    End Sub
    Public Sub New(ByVal idMoneda As Int32, ByVal descMoneda As String)
        Me.idMoneda = idMoneda
        Me.descMoneda = descMoneda
    End Sub
    Public Sub New(ByVal idMoneda As Int32, ByVal descMoneda As String, _
                   ByVal estado As String, ByVal idUsuario As Integer)
        Me.idMoneda = idMoneda
        Me.descMoneda = descMoneda
        Me.estado = estado
        Me.desEstado = IIf(estado = 1, "HABILITADO", "DESHABILITADO")
        Me.idUsuario = idUsuario
    End Sub
#End Region

End Class
